/////////////////////////////////////////////////////////////////////////////
// Name:        dictpackpanel.h
// Purpose:     
// Author:      Brant Young
// Modified by: 
// Created:     Sat Jun 23 14:55:29 2007
// RCS-ID:      
// Copyright:   (C) Victsoft 2007
// Licence:     GPL 2.0
/////////////////////////////////////////////////////////////////////////////

#ifndef _DICTPACKPANEL_H_
#define _DICTPACKPANEL_H_


#include <wx/htmllbox.h>
#include <wx/html/htmlwin.h>
#include <wx/statline.h>

class wxBoxSizer;
class wxSimpleHtmlListBox;
class wxStaticLine;
class wxCustomButton;
class ThemeManager;
class DictManager;



/*!
 * DictPackPanel class declaration
 */

class DictPackPanel: public wxPanel
{
public:
    /// Constructors
    DictPackPanel(wxWindow* p_parent);

    /// Destructor
    virtual ~DictPackPanel();

////@begin DictPackPanel member variables
    wxBoxSizer* p_root_sizer;
    // wxBoxSizer* p_dict_sizer;
    wxSimpleHtmlListBox* p_dict_htmllist;
    // CHMHtmlWindow* p_info_htmlwnd;
    wxBoxSizer* p_button_sizer;
    wxBitmapButton* p_top_btn;
    wxBitmapButton* p_bottom_btn;
    wxBitmapButton* p_up_btn;
    wxBitmapButton* p_down_btn;
    wxStaticLine* p_stcline;
    wxButton* p_disable_btn;
    wxButton* p_uninstall_btn;
    wxButton* p_property_btn;
    /// Control identifiers
    enum {
        ID_DICTPACK_PANEL = 10011,
        ID_DICT_HTMLLIST,
        // ID_INFO_HTMLWND,
        ID_TOP_BTN,
        ID_BOTTOM_BTN,
        ID_UP_BTN,
        ID_DOWN_BTN,
        ID_DISABLE_BTN,
        ID_UNINSTALL_BTN,
        ID_PROPERTY_BTN,
    };
////@end DictPackPanel member variables
    
    void OnDictSelected(wxCommandEvent& event);
    void OnDisableDict(wxCommandEvent& event);
    void OnUninstallDict(wxCommandEvent& event);
    void OnMoveTop(wxCommandEvent& event);
    void OnMoveUp(wxCommandEvent& event);
    void OnMoveDown(wxCommandEvent& event);
    void OnMoveBottom(wxCommandEvent& event);
    void OnDictProperty(wxCommandEvent& event);
    
protected:
	bool _set_dict_item_color(int index);
    void _init_dicts();
    
    void InitEvents();

    DictManager* _p_dictmgr;
    ThemeManager* _p_thememgr;
};

#endif
    // _DICTPACKPANEL_H_
